package com.yunxi.model.finance;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 返利与佣金
 * </p>
 *
 * @author 
 * @since 2019-09-16
 */
@Data
@EqualsAndHashCode(callSuper = false)

@TableName("pms_dynamic_rebate_commission")
@ApiModel(value="DynamicRebateCommission对象", description="返利与佣金")
public class DynamicRebateCommission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "动态返利编码")
    @TableId(value = "DYNAMIC_ID", type = IdType.UUID)
    private String dynamicId;

    @ApiModelProperty(value = "返利编码")
    @TableField(value = "REBATE_CODE")
    private String rebateCode;

    @ApiModelProperty(value = "渠道商编码")
    @TableField("PARTNER_CODE")
    private String partnerCode;

    @ApiModelProperty(value = "返利类型")
    @TableField("RABATE_TYPE")
    private Integer rabateType;

    @ApiModelProperty(value = "返利时间")
    @TableField("RABATE_TIME")
    private Date rabateTime;

    @ApiModelProperty(value = "审核状态，返利状态(1审核通过2待审核3驳回)")
    @TableField("AUDIT_STATUS")
    private Integer auditStatus;

    @ApiModelProperty(value = "返利名称")
    @TableField("RABATE_NAME")
    private String rabateName;

    @ApiModelProperty(value = "返利金额")
    @TableField("RABATE_AMOUNT")
    private BigDecimal rabateAmount;

    @ApiModelProperty(value = "备注")
    @TableField("MEMO")
    private String memo;

    @ApiModelProperty(value = "1启用 0禁用")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "是否删除 1是 0 否")
    @TableField("IS_DEL")
    private Integer isDel;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_BY")
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "UPDATE_TIME",fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    @TableField("UPDATE_BY")
    private String updateBy;

    @ApiModelProperty(value = "审核人")
    @TableField("AUDIT_BY")
    private String auditBy;

    @ApiModelProperty(value = "审核时间")
    @TableField("AUDIT_TIME")
    private String auditTime;

    @ApiModelProperty(value = "审批意见")
    @TableField("AUDIT_INFO")
    private String auditInfo;

    @ApiModelProperty(value = "1固定返利2动态返利")
    @TableField("IS_DYNAMIC")
    private Integer isDynamic;

    @ApiModelProperty(value = "订单号")
    @TableField("ORDER_NO")
    private String orderNo;


}
